﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.Diagnostics;

namespace ClassicJukebox
{
    public abstract class NotifyingObject : INotifyPropertyChanged
    {
        // Events
        public event PropertyChangedEventHandler PropertyChanged;

        // Methods
        protected NotifyingObject()
        {
        }

        protected void OnPropertyChanged(string propertyName)
        {
            if (this.PropertyChanged != null)
            {
                this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [Conditional("DEBUG")]
        public static void VerifyPropertyExists(object instance, string propertyName)
        {
        }

        [Conditional("DEBUG")]
        public static void VerifyPropertyExists(Type type, string propertyName)
        {
        }
    }
}
